package indi.zhifa.study2024.nbr.monitor.gen.monitor.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import indi.zhifa.core.mpenhance.entity.annotations.ZfDbService;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.user.po.GenMonitorRoleEntity;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.user.mapper.GenMonitorRoleMapper;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.user.service.IGenMonitorRoleDbService;
import indi.zhifa.core.mpenhance.service.impl.ZfDbServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author 织法
 * @since 2024-11-02
 */
@ZfDbService(name="GenMonitorRoleEntity")
public class GenMonitorRoleDbServiceImpl extends ZfDbServiceImpl<GenMonitorRoleMapper, GenMonitorRoleEntity> implements IGenMonitorRoleDbService {

    @Override
    public List<GenMonitorRoleEntity> listByRoleCodeIn(List<String> pRoleCodeList) {
        LambdaQueryWrapper<GenMonitorRoleEntity> queryWrapper = Wrappers.<GenMonitorRoleEntity>lambdaQuery()
                .in(GenMonitorRoleEntity::getCode, pRoleCodeList);
        return list(queryWrapper);
    }
}
